﻿package mortal.game.scene3D.map3D.util
{
    import flash.utils.*;
    import mortal.game.scene3D.map3D.sceneInfo.*;
    import mortal.game.view.relive.parts.*;

    public class GameSceneUtil extends Object
    {

        public function GameSceneUtil()
        {
            return;
        }// end function

        public static function getReliveType() : int
        {
            var _loc_4:String = null;
            var _loc_1:* = ReliveType.General;
            var _loc_2:* = GameMapUtil.curMapState.curSceneInfo;
            if (_loc_2 == null || _loc_2.sMapDefine == null)
            {
                return _loc_1;
            }
            var _loc_3:* = _loc_2.sMapDefine.revivalRestriction;
            if (_loc_3 == null || _loc_3[1] != null && _loc_3[2] != null)
            {
                return ReliveType.General;
            }
            for (_loc_4 in _loc_3)
            {
                
                break;
            }
            return int(_loc_4);
        }// end function

        public static function getReliveCD() : int
        {
            var _loc_2:int = 0;
            var _loc_1:* = GameMapUtil.curMapState.curSceneInfo;
            if (_loc_1 == null || _loc_1.sMapDefine == null || _loc_1.sMapDefine.revivalRestriction == null)
            {
                return 0;
            }
            for each (_loc_2 in _loc_1.sMapDefine.revivalRestriction)
            {
                
                break;
            }
            return _loc_2;
        }// end function

    }
}
